package com.kfm;

public class Cat {

    protected String name;
    private int age;

    // package-access 缺省访问修饰符
    String color;

    public Cat(){}

    public Cat(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void eat() {
        System.out.println("吃！！");
        sleep();
    }

    private void sleep() {
        System.out.println("睡觉！！");
    }
}
